import Base from '../../base'
import view from '../../views/login/login.json'

export default class Login extends Base {

	constructor(scene) {
		super(scene,view)
	}

	playDoor(){
		this.view['bg.openDoor'].anims.play(this.view['bg.openDoor'].conf.url)
		this.view['bg.openDoor'].once(Phaser.Animations.Events.ANIMATION_COMPLETE, () => {
			this.scene.scene.start('SelectRoleScene')
		})
	}

}